<template>
  <el-config-provider :locale="locale">
    <router-view />
  </el-config-provider>

</template>
<script lang="ts" setup>
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
import en from 'element-plus/lib/locale/lang/en'
import { useStore } from 'vuex'
import { computed, onMounted } from 'vue';
import '@/mixin/init'
const store = useStore()
const locale = computed(() => {
  return store.state.locale == 'zhCn' ? zhCn : en
})
onMounted(() => {
  document.getElementsByTagName('html')[0].className = store.state.displayMode
})
</script>
<style>
* {
  margin: 0;
  padding: 0;
  user-select: none;
}

.listItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ListItemRight {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* .main {
  display: flex;
  align-items: center;
  flex-direction: column;
} */
</style>